package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Auther:
 * @Date: 2024/10/4 10:02
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SystemChangePwdRequest对象", description = "管理后台账户修改密码请求对象")
public class SystemChangePwdRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "后台管理员表ID")
    @NotNull(message = "管理员id不能为空")
    private Integer id;

    @ApiModelProperty("原密码")
    @NotBlank(message = "原密码不能为空")
    private String pwd;

    @ApiModelProperty("新密码")
    @NotBlank(message = "新密码不能为空")
    private String newPwd;
}
